import formBuilder from "@/comps/form/formBuilder";
import api from "../../Orders/js/api";

export default {
    main:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100)

        fb.addSearch("orderId","订单",6).setInputPositionRight()
            .setApi(api.urlChoice)

        fb.addText("name","进度说明",9).setRules(
            [fb.R.notNull()]
        )
        fb.addText("sort","排序",3).setTypeNumber()

        fb.addArt("content","备注",12)

        fb.addFiles("assets","附件",12).setIsFile().setIsMultiple()

        return fb
    },
    other:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100).setLabelPosition("right")

        return fb
    }
}